<!-- <script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
</script> -->

<template>
  <el-config-provider :locale="locale">
    <div style="position: relative" ref="parent">
      <router-view v-slot="{ Component }">
        <component :is="Component" />
      </router-view>
    </div>
  </el-config-provider>
</template>
<script lang="ts">
// 使用动态include解析
// app.vue文件
import { ElConfigProvider } from 'element-plus'
import { defineComponent } from 'vue'
import { useRoute } from 'vue-router'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
export default defineComponent({
  name: 'App',
  components: {
    ElConfigProvider,
  },
  setup() {
    const route = useRoute()
    const key = () => {
      return (route.name as string) + Math.random()
    }
    return { key, locale: zhCn }
  },
})
</script>
<style lang="scss">
body {
  margin: 0;
  padding: 0;
}

.collapse {
  overflow: auto;
  height: 660px;
}

.selected-border {
  border: 1px dashed rgb(24, 226, 24);
  background: red;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* background: #F8F9F9; */
}

#json-info {
  width: 100%;
  font-size: 15px;
  text-align: left;
  padding: 10px 0 0 20px;
  white-space: pre-wrap;
  word-wrap: break-word;
  min-height: 200px;
  margin-top: 10px;
  color: white;
  background: rgba(7, 10, 10, 0.5);

  .string {
    color: rgb(245, 247, 239);
  }

  .number {
    color: darkorange;
  }

  .boolean {
    color: blue;
  }

  .null {
    color: magenta;
  }

  .key {
    color: rgba(199, 240, 17, 0.726);
  }
}

.clearfix {
  clear: left;
  content: '';
}

.font12 {
  font-size: 12px;
}

.mgbt15 {
  margin: 15px 0;
}

.mgbt10 {
  margin: 10px 0;
}

.prices {
  margin: 4px 0;
}

.mgr4 {
  margin-right: 4px;
}

.mgr7 {
  margin-right: 7px;
}

.mgr10 {
  margin-right: 10px;
}

.mgb4 {
  margin-bottom: 4px;
}

.mgb7 {
  margin-bottom: 7px;
}

.mgb10 {
  margin-bottom: 10px;
}

.mgt20 {
  margin-top: 20px;
}

.mgt10 {
  margin-top: 10px;
}

.mgt30 {
  margin-top: 30px;
}

.mgt20 {
  margin-top: 20px;
}

.pdl4 {
  padding-left: 4px;
}

.pdl14 {
  padding-left: 14px;
}

.pdr15 {
  padding-right: 15px;
}

.pdb20 {
  padding-bottom: 20px;
}

.tl {
  text-align: left;
}

html,
body {
  overflow-x: hidden;
}
// 谷歌浏览器黑边问题
input,
textarea {
  outline: none;
}

// el-plus 黑边问题处理
.el-popper:focus {
  outline: none !important;
}
</style>
